/*
 *  Copyright 2009 Utkin Dmitry
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
 
/* 
 *  This file is part of the WSF Staff project.
 *  Please, visit http://code.google.com/p/staff for more information.
 */

// This file generated by staff_codegen
// Service Implementation

#ifndef _AccountAdminImpl_h_
#define _AccountAdminImpl_h_

#include "AccountAdmin.h"

namespace staff
{
namespace admin
{

  class CAccountAdminImpl: public CAccountAdmin
  {
  public:
    CAccountAdminImpl();
    virtual ~CAccountAdminImpl();
    virtual ::staff::admin::TUserList GetUsers();
    virtual ::staff::admin::TGroupList GetGroups();
    virtual ::staff::admin::TIdList GetUserGroups(int nUserId);
    virtual int AddUser(const std::string& sUserName, const std::string& sDescription);
    virtual void RemoveUser(int nUserId);
    virtual void SetUserPassword(int nUserId, const std::string& sPass);
    virtual int AddGroup(const std::string& sGroupName, const std::string& sDescription);
    virtual void RemoveGroup(int nGroupId);
    virtual void AddUserToGroup(int nUserId, int nGroupId);
    virtual void AddUserToGroups(int nUserId, const ::staff::admin::TIdList& rlsGroupIds);
    virtual void RemoveUserFromGroup(int nUserId, int nGroupId);
    virtual void RemoveUserFromGroups(int nUserId, const ::staff::admin::TIdList& rlsGroupIds);
  };
}
}


#endif // _AccountAdminImpl_h_
